package com.cross.core;

/**
 * 写入器.
 * 
 * 
 * 2009-2-7
 * 
 * @author craziness_stone
 */
public interface Writer {

	/**
	 * 是否可用
	 * 
	 * 2009-2-7
	 * 
	 * @author craziness_stone
	 * @return
	 */
	public boolean available();

	/**
	 * 写入一行
	 * 
	 * 2009-2-7
	 * 
	 * @author craziness_stone
	 * @param row
	 * @return
	 */
	public Row write(Row row);

	/**
	 * 关闭组装器
	 * 
	 * 2009-2-9
	 * 
	 * @author craziness_stone
	 */
	public void close();

	/**
	 * 设置表头对象
	 * 
	 * 2009-5-11
	 * 
	 * @author craziness_stone 
	 * @param header
	 */
	public void setHeader(Header header);
}
